import request from "@/utils/request";

// 查询合同项目连列表
export function listContractProjectConnection(query) {
  return request({
    url: "/contract/ContractProjectConnection/list",
    method: "get",
    params: query,
    handleError: true,
  });
}

// 查询合同项目连详细
export function getContractProjectConnection(contractProjectConnectionId) {
  return request({
    url: "/contract/ContractProjectConnection/" + contractProjectConnectionId,
    method: "get",
    handleError: true,
  });
}

// 新增合同项目连
export function addContractProjectConnection(data) {
  return request({
    url: "/contract/ContractProjectConnection",
    method: "post",
    data: data,
  });
}

// 修改合同项目连
export function updateContractProjectConnection(data) {
  return request({
    url: "/contract/ContractProjectConnection",
    method: "put",
    data: data,
  });
}

// 删除合同项目连
export function delContractProjectConnection(contractProjectConnectionId) {
  return request({
    url: "/contract/ContractProjectConnection/" + contractProjectConnectionId,
    method: "delete",
  });
}
